#pragma once
#include "cocos2d.h"
USING_NS_CC;
class CEnemy;
CEnemy* CreateEnemy( CCLayer* pLayer, CCPoint oLocation, float fDelay );

class CEnemy :	public CCNode
{
private:
	friend CEnemy* CreateEnemy( CCLayer* pLayer, CCPoint oLocation, float fDelay );
	CEnemy(void);
	virtual ~CEnemy(void);

public:
	void doActivate(float dt);

protected:
	virtual void update(float dt);
	virtual void draw(void);

	CC_SYNTHESIZE( bool, mActive, Active );
	CC_SYNTHESIZE( int, mHP_Max, HP_Max );
	CC_SYNTHESIZE( int, mHP_Cur, HP_Cur );
	CC_SYNTHESIZE( float, mMoveSpeed, MoveSpeed );
	CC_SYNTHESIZE( CCPoint, mTargetPoint, TargetPoint );
};